package com.jie.jie.mvp.contract;

import com.jaydenxiao.common.base.BaseModel;
import com.jaydenxiao.common.base.BasePresenter;
import com.jaydenxiao.common.base.BaseView;
import com.jie.jie.mvp.model.MeiziBean;

import java.util.List;

import rx.Observable;

/**
 * Created by jie on 2017/1/23.
 */

public interface Meicontract {
    interface Model extends BaseModel {

        Observable<List<MeiziBean>> getMeizi(final int page);

        Observable<List<MeiziBean>> getmizi(final int page, final String url);
    }

    interface View extends BaseView {

        void returnMeizi(List<MeiziBean> meiziBeen);
        void returnMizi(List<MeiziBean> meiziBeen);
    }

    public abstract class Presenter extends BasePresenter<View, Model> {

        public abstract void  getMEizi(final int page);

        public abstract void getMizi(final int page, final String url);


    }

}
